package com.freesun.shop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.freesun.shop.param.UserParam;
import com.freesun.shop.entity.SysUser;

import java.util.List;

/**
 * <p>
 * 系统用户 服务类
 * </p>
 *
 * @author zf
 * @since 2019-11-13
 */
public interface SysUserService extends IService<SysUser> {

    /**
     * 根据用户名查询用户
     * @param username
     * @return
     */
    SysUser findUserByName(String username);


    IPage<SysUser> findSysUserPage(SysUser sysUser, Page<SysUser> page);

    Boolean deleteUserByIds(List<Long> ids);

    Boolean deleteUserById(Long userId);

    void addUser(UserParam userParam);

    void updateUser(SysUser sysUser);
}
